﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DentistApplication
{
    public static class TimetableHandler
    {

        public static bool addAppointment(char completed, DateTime startDate, DateTime endDate, int patient_id, int dentist_id, String notes)
        {
            Timetable t = new Timetable()
            {
                completed = completed,
                startDate = startDate,
                endDate = endDate,
                patient_id = patient_id,
                dentist_id = dentist_id,
                notes = notes

            };
            return DatabaseHandler.addAppointmentToDatabase(t);
        }

        public static List<Timetable> getAllAppointments()
        {
            return DatabaseHandler.getAllAppointments();
        }
    }
}
